<?php $_TPL['title'][]='客服人员列表'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title><?php if(is_array($_TPL['title'])) { foreach($_TPL['title'] as $title) { ?> <?php echo $title ;?> - <?php } } ?>对话中国</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <script type="text/javascript" src="include/js/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="include/js/common.js"></script>
        <script type="text/javascript" src="include/js/header.js"></script>
        <style type="text/css">
            @import url(template/default/style.css);
        </style>
    </head>
    <body>
        <div id="warp">
            <div id="header">
                <div id="header_top">
                    <div class="left"><img src="template/default/image/bg_corner_top.gif"/></div>
                    <div class="right">
                        <?php if($_SGLOBAL['supe_uid']) { ?>
                        <div id="header_login">
                            <a href="#">退出</a>
                        </div>
                        <div id="header_nav">
                            <ul>
                                <li id="nav_company"><a href="setup.php?ac=company"><img src="template/default/image/b_manage.gif" /></a></li>
                                <li id="nav_interface"><img src="template/default/image/b_interface.gif" /></li>
                                <li id="nav_support"><a href="setup.php?ac=support"><img src="template/default/image/b_profile.gif" /></a></li>
                                <li id="nav_session"><img src="template/default/image/b_sessions.gif" /></li>
                                <li id="nav_prefs"><a href="setup.php?ac=profile"><img src="template/default/image/b_prefs-over.gif" /></a></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <?php } ?>
                    </div>
                    <div class="clear"></div>
                </div>
                <div id="header_bottom">
                    <div class="left">
                        <a href="">::首页</a>
                    </div>
                    <div class="header_bottom_bg_menu">&nbsp;</div>
                    <div class="right">
                        <?php if($_SGLOBAL['supe_uid']) { ?>
                        <div id="header_submenu">
                            <div <?php echo $submenu['none'] ;?>>
                                欢迎管理dialogcn的管理员区域
                            </div>
                            <div <?php echo $submenu['prefs'] ;?> id="submenu_prefs">
                                <a href="setup.php?ac=email">邮件模板</a>
                                <a href="setup.php?ac=global">全局设置</a>
                            </div>
                            <div <?php echo $submenu['support'] ;?> id="submenu_support">
                                <a href="setup.php?ac=support&op=add">添加客服人员</a>
                                <a href="setup.php?ac=support&op=list">客服人员列表</a>
                                <a href="setup.php?ac=support&op=search">搜索客服人员</a>
                            </div>
                            <div <?php echo $submenu['session'] ;?> id="submenu_session">
                                <a href="#">当前回话</a>
                                <a href="#">当前回话</a>
                            </div>
                            <div <?php echo $submenu['interface'] ;?> id="submenu_interface">
                                <a href="#">主题</a>
                                <a href="#">图标</a>
                            </div>
                            <div <?php echo $submenu['company'] ;?> id="submenu_company">
                                <a href="setup.php?ac=company&op=list">公司列表</a>
                                <a href="setup.php?ac=company&op=add">添加公司</a>
                                <a href="setup.php?ac=company&op=search">搜索公司</a>
                            </div>
                        </div>
                        <?php } ?>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
<script type="text/javascript" src="include/js/city.js"></script>
<div id="content" class="setup_func_list">
    <h5>客服人员列表：</h5>
    <ul class="form_description_ul">
        <li>你可以在这里进行一些跟客服人员相关的操作</li>
    </ul>
    <?php if(!empty($memberlist)) { ?>
<form id="listform" action="setup.php?ac=company&op=del" method="post">
    <input type="hidden" name="formhash" value="<?php echo Utils::formhash(); ?>"/>
    <table class="form_table" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <td>&nbsp;</td>
                <td>用户名</td>
                <td>用户组</td>
                <td>所属公司</td>
                <td>是否该公司管理员</td>
                <td>添加时间</td>
                <td>最后登录时间</td>
                <td>状态</td>
            </tr>
        </thead>
        <tbody>
            <?php if(is_array($memberlist)) { foreach($memberlist as $member) { ?>
            <tr>
                <td><input type="checkbox" name="uid[]" value="<?php echo $member['uid'] ;?>"/></td>
                <td><a href="setup.php?ac=<?php echo $ac ;?>&op=edit&cid=<?php echo $member['cid'] ;?>"><?php echo $member['username'] ;?></a></td>
                <td><?php echo $member['grouptitle'] ;?></td>
                <td><?php echo $member['cname'] ;?></td>
                <td><?php if($member['cadmin']) { ?>是<?php } else { ?>否<?php } ?></td>
                <td><?php echo $member['dateline'] ;?></td>
                <td><?php echo $member['lastupdate'] ;?></td>
                <td>
                    <?php if($member['state']==1) { ?>正常<?php } ?>
                </td>
            </tr>
            <?php } } ?>
            <tr class="form_table_op_tr">
                <td><input type="checkbox" id="selectAll"/></td>
                <td colspan="3">
                    <input type="hidden" name="delsubmit" value="true"/>
                    <input class="i_submit" type="button" id="delsubmit" value="删除"/>
                </td>
            </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
    $(function(){
        $("#selectAll").click(function(){
            selectAll(this,'listform');
        });
        $("#listform .form_table tr:even").remove('.form_table_op_tr').addClass('alt');
    });
</script>
<?php } ?>
</div>
<div id="siber_icon">
    <img src="template/default/image/g_manage_big.jpg"/>
</div>
<div class="clear"></div>
<div id="footer">
    对话中国版权所有
</div>
</div>
</body>
</html>